import request from '@/utils/request';
import { ProductManagementVO } from '@/api/service/addService/types';

/**
 *  保存设置
 */
export const allocOperatorProduct = (products: ProductManagementVO[]) => {
  return request({
    url: '/payment/operatorProduct/allocOperatorProduct',
    method: 'post',
    data: {
      products
    }
  });
};


export const listNew = (params) => {
  return request({
    url: '/payment/operatorProduct/listNew',
    method: 'get',
    params:params
  });
};



export default {
  listNew,
  allocOperatorProduct,
};
